﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ZFMaster.Master" AutoEventWireup="true"
    CodeBehind="pFitup.aspx.cs" Inherits="ZF.WS.info.pFitup" %>
 

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
 

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/css/validator.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script>
        var citystr = '<%=Newtonsoft.Json.JsonConvert.SerializeObject(ZF.BLL.DictionaryConfig.HAreaTree)%>';
    </script>

    <script language="javascript" type="text/javascript" src="/js/jqPlugins/jquery.json-2.2.min.js"></script>

    <script src="/js/formValidator.js" type="text/javascript" language="javascript"></script>

    <script src="/js/formValidatorRegex.js" type="text/javascript" language="javascript"></script>

    <script src="/js/jqPlugins/onlypressnum.js" type="text/javascript" language="javascript"></script>

    <script src="/js/zfinput.js" type="text/javascript" language="javascript"></script>

    <script>

        $(function() {

            $.formValidator.initConfig({ formid: document.forms[0].id, onerror: function(msg) { alert(msg) } });

            $(".tbTitle").formValidator({ tipid: "tbTitleTip", onshow: "发布标题(至少8个字，请尽量包括关键信息以便搜索):", onfocus: "发布标题(至少8个字，请尽量包括关键信息以便搜索):", oncorrect: " ", onempty: "发布标题(至少8个字，请尽量包括关键信息以便搜索):" })
    .inputValidator({ min: 8, onerror: "输入错误：发布标题必须达到8个字以上" })
    .inputValidator({ max: 40, onerror: "输入错误：信息标题不能超过20个字" });


 

//            $(".tbContact").formValidator({ tipid: "tbContactTip", onshow: "( 如王先生)", onfocus: "( 如王先生)", oncorrect: " ", onempty: "( 如王先生)" })
//    .inputValidator({ min: 1, onerror: "输入错误：必须输入联系人" });

            //         $(".tbPhone").formValidator({ tipid: "tbPhoneTip", onshow: "( 固话号码或手机号码，如果有多个用“，”分隔)", onfocus: "( 固话号码或手机号码，如果有多个用“，”分隔)", oncorrect: " ", onempty: "(  固话号码或手机号码，如果有多个用“，”分隔)" })
            //    .inputValidator({ min: 1, onerror: "输入错误：请至少输入一个联系电话" });
 
            //            $(".tbEmail").formValidator({ tipid: "tbEmailTip", onshow: " ", onfocus: " ", oncorrect: " ", onempty: " " })
            //    .regexValidator({ regexp: "email", datatype: "enum", onerror: "格式错误" });

        });
    
    
    </script>

    <div class="location mb10_">
        您现在的位置：<a href="/"><%=SiteInfo.Instance.SystemConfig.SiteName %></a> >> <a href="<%=this.Request.Url %>">
            信息发布</a>
    </div>
    <div class="editContainer">
        <table class=" w100_  edit edit1">
            <zf:TextBox ID="tbCity" class="dn_" Text="149" runat="server"></zf:TextBox>
            <zf:TextBox ID="tbArea" class="dn_" Text="153" runat="server"></zf:TextBox>
            <tbody>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_">*</span>标题：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbTitle" class="lltxt"></zf:TextBox>
                            <span class="zx_" id="tbTitleTip"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>内容：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <fckeditorv2:fckeditor editorareacss="msgContent" id="FCKeditor1" enablexhtml="false"
                                runat="server" height="400px" width="90%" toolbarstartexpanded="false" ToolbarSet="Basic" >
                    </fckeditorv2:fckeditor>
                            <span class="zx_" id="Span2"></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>联系人：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbContact" class="stxt"></zf:TextBox>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>电话：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbPhone" class="stxt"></zf:TextBox>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"></span>邮箱：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbEmail" class="stxt"></zf:TextBox>
                        </div>
                    </td>
                </tr>
            </tbody>
            <tbody>
                <tr class="b">
                    <td colspan="4">
                        <div>
                            <zf:Button BindOper="AddNew" ID="btAdd" class="linkbtn addSubmit" runat="server"
                                Text=" 发 布 " OnClick="AddSubmit"></zf:Button>
                            <zf:Button BindOper="Edit" ID="btEdit" class="linkbtn" runat="server" Text=" 修 改 "
                                OnClick="EditSubmit"></zf:Button>
                            <input type="button" class="linkbtn" value=" 取 消 " onclick="GoBack();" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
